package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @description: 未关闭事项参与人和抄送人表
 * @author: wangmin
 * @creat: on 2018-9-17
 * @since: V1.0.0
 * @see jsyf.oa.web
 */
@Entity
@Table(name = "T_WRT_UNFINISH_PERSON", schema = "oa", catalog = "")
public class WReportUnfinishPersonEntity extends BaseEntity  implements Serializable {
    private String mainId;
    private String personId;
    private Integer personType;

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public Integer getPersonType() {
        return personType;
    }

    public void setPersonType(Integer personType) {
        this.personType = personType;
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("MAIN_ID","mainId");
        json.put("PERSON_ID","personId");
        json.put("PERSON_TYPE","personType");

        return json;
    }
    public JSONObject getJSONObject(){
        JSONObject obj = new JSONObject();
        obj.put("MAIN_ID",getMainId());
        obj.put("PERSON_ID",getPersonId());
        obj.put("PERSON_TYPE",getPersonType());
        return  obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_UNFINISH_PERSON";
    }
}
